package com.ding.pojo;

import javax.validation.constraints.Size;

public class User {
	@Size(min=1,max=3,message="{user.name}")
	String name;
	
	String imgDir;
	public User() {
	}
	public User(String name) {
		this.name=name;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getImgDir() {
		return imgDir;
	}
	public void setImgDir(String imgDir) {
		this.imgDir = imgDir;
	}
	@Override
	public String toString() {
		return name;
	}
}
